package com.oauth.service.google.service;

import com.oauth.service.OAuthDAO;
import com.oauth.service.OAuthService;
import com.oauth.service.OAuthServiceException;
import com.oauth.service.google.beans.GooglePicasaBean;

public class PicasaOAuthServiceImpl implements OAuthService<GooglePicasaBean> {

	private OAuthDAO<GooglePicasaBean> mGoogleDAO;

	@Override
	public void deleteToken(Long memberId) throws OAuthServiceException {
		getGoogleDAO().deleteToken(memberId);
	}

	@Override
	public GooglePicasaBean getToken(Long memberId) throws OAuthServiceException {
		return getGoogleDAO().getToken(memberId);
	}

	@Override
	public GooglePicasaBean persistToken(GooglePicasaBean serviceBean) throws OAuthServiceException {
		return getGoogleDAO().persistToken(serviceBean);
	}

	/**
	 * @return the googleDAO
	 */
	public OAuthDAO<GooglePicasaBean> getGoogleDAO() {
		return mGoogleDAO;
	}

	/**
	 * @param pGoogleDAO the googleDAO to set
	 */
	public void setGoogleDAO(OAuthDAO<GooglePicasaBean> pGoogleDAO) {
		mGoogleDAO = pGoogleDAO;
	}
	
	
}